//
//  RJCheckDataFitCell.h
//  AirQuality
//
//  Created by Po on 15/5/2.
//  Copyright (c) 2015年 Po. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RJCheckDataCellButton.h"
typedef NS_ENUM(NSUInteger, DataState)
{
    DataStateNormal,            //普通状态
    DataStateValid,             //自定义有效
    DataStateUnValid            //自定义无效
};

@protocol RJCheckDataFitCellDelegate;

@interface RJCheckDataFitCell : UITableViewCell

@property (retain, nonatomic) NSMutableArray * allButtons;         //所有数值按钮
@property (retain, nonatomic) NSArray * dataStateArray;
@property (retain, nonatomic) UIColor * lineColor;
@property (assign, nonatomic) id<RJCheckDataFitCellDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame buttonNum:(NSUInteger)num;

/**设置按钮数量*/
- (void)setButtonNum:(NSUInteger)num;

/**设置所有点击效果是否失效*/
- (void)setAllEfficacy:(BOOL)isEfficacy;

/**设置统一字体*/
- (void)setAllFont:(UIFont *)font;

/**显示下方线条*/
- (void)showLine;

/**设置下方线条颜色*/
- (void)setLineColor:(UIColor *)color;
@end


@protocol RJCheckDataFitCellDelegate <NSObject>

/**点击按钮*/
- (void)RJCheckDataFitCellDidSelect:(UIButton *)button cell:(RJCheckDataFitCell *)cell;

@end
